<template>
  <el-descriptions
    :title="t('ustcstudent.view.tab.university')"
    :column="3"
    border
    label-width="150"
  >
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.inschoolFlag')" width="280">
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_INSCHOOL_STATUS"
        v-model="model.inschoolFlag"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.inschoolFlag')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.studentStatus')" width="280">
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_STUDENT_STATUS"
        v-model="model.studentStatus"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.studentStatus')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item
      :label="t('ustcStudentInfoUniversity.fields.studentStatusChange')"
      width="280"
    >
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_STUDENT_STATUS_CHANGE"
        v-model="model.studentStatusChange"
        :placeholder="
          t('common.selectTextPlaceholder') +
          t('ustcStudentInfoUniversity.fields.studentStatusChange')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item
      :label="t('ustcStudentInfoUniversity.fields.admissionSeason')"
      width="280"
    >
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_ADMISSION_SEASON"
        v-model="model.admissionSeason"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.admissionSeason')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.admissionTime')" width="280">
      <EditDate
        v-model="model.admissionTime"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.admissionTime')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.admissionType')" width="280">
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_ADMISSION_TYPE"
        v-model="model.admissionType"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.admissionType')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.studentType')" width="280">
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_STUDENT_TYPE"
        v-model="model.studentType"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.studentType')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.eduDuration')" width="280">
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_EDU_DURATION"
        v-model="model.eduDuration"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.eduDuration')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.trainingLevel')" width="280">
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_TRAINING_LEVEL"
        v-model="model.trainingLevel"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.trainingLevel')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.grade')" width="280">
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_GRADE"
        v-model="model.grade"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.grade')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.faculty')" width="280">
      <EditInput
        v-model="model.faculty"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoUniversity.fields.faculty')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.major')" width="280">
      <EditInput
        v-model="model.major"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoUniversity.fields.major')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.category')" width="280">
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_CATEGORY"
        v-model="model.category"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.category')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item
      :label="t('ustcStudentInfoUniversity.fields.firstLevelSubject')"
      width="280"
    >
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_FIRST_LEVEL_SUBJECT"
        v-model="model.firstLevelSubject"
        :placeholder="
          t('common.selectTextPlaceholder') +
          t('ustcStudentInfoUniversity.fields.firstLevelSubject')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item
      :label="t('ustcStudentInfoUniversity.fields.professionalDirection')"
      width="280"
    >
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_PROFESSIONAL_DIRECTION"
        v-model="model.professionalDirection"
        :placeholder="
          t('common.selectTextPlaceholder') +
          t('ustcStudentInfoUniversity.fields.professionalDirection')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.trainingMethod')" width="280">
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_TRAINING_METHOD"
        v-model="model.trainingMethod"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.trainingMethod')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.learnMethod')" width="280">
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_LEARN_METHOD"
        v-model="model.learnMethod"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.learnMethod')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.specialPlan')" width="280">
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_SPECIAL_PLAN"
        v-model="model.specialPlan"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.specialPlan')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item
      :label="t('ustcStudentInfoUniversity.fields.elecAcademicRegNote')"
      width="280"
    >
      <EditInput
        v-model="model.elecAcademicRegNote"
        :placeholder="
          t('common.inputTextPlaceholder') +
          t('ustcStudentInfoUniversity.fields.elecAcademicRegNote')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.classroom')" width="280">
      <EditInput
        v-model="model.classroom"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoUniversity.fields.classroom')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.primaryMentor')" width="280">
      <EditInput
        v-model="model.primaryMentor"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoUniversity.fields.primaryMentor')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item
      :label="t('ustcStudentInfoUniversity.fields.secondaryMentor')"
      width="280"
    >
      <EditInput
        v-model="model.secondaryMentor"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoUniversity.fields.secondaryMentor')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item
      :label="t('ustcStudentInfoUniversity.fields.residenceCampus')"
      width="280"
    >
      <EditInput
        v-model="model.residenceCampus"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoUniversity.fields.residenceCampus')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.dormAddress')" width="280">
      <EditInput
        v-model="model.dormAddress"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoUniversity.fields.dormAddress')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.basicPeriod')" width="280">
      <EditDate
        v-model="model.basicPeriod"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.basicPeriod')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.longestPeriod')" width="280">
      <EditDate
        v-model="model.longestPeriod"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.longestPeriod')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.registerStatus')" width="280">
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_REGISTER_STATUS"
        v-model="model.registerStatus"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.registerStatus')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.fundingPeriod')" width="280">
      <EditDate
        v-model="model.fundingPeriod"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.fundingPeriod')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.defenseDate')" width="280">
      <EditDate
        v-model="model.defenseDate"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.defenseDate')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.leaveDate')" width="280">
      <EditDate
        v-model="model.leaveDate"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.leaveDate')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item
      :label="t('ustcStudentInfoUniversity.fields.graduationConclusion')"
      width="280"
    >
      <EditInput
        v-model="model.graduationConclusion"
        :placeholder="
          t('common.inputTextPlaceholder') +
          t('ustcStudentInfoUniversity.fields.graduationConclusion')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.graduationDate')" width="280">
      <EditDate
        v-model="model.graduationDate"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.graduationDate')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item
      :label="t('ustcStudentInfoUniversity.fields.graduationNumber')"
      width="280"
    >
      <EditInput
        v-model="model.graduationNumber"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoUniversity.fields.graduationNumber')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.degreeType')" width="280">
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_DEGREE_TYPE"
        v-model="model.degreeType"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.degreeType')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.degree')" width="280">
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_DEGREE"
        v-model="model.degree"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.degree')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.degreeDate')" width="280">
      <EditDate
        v-model="model.degreeDate"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.degreeDate')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.phdInResearch')" width="280">
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_PHD_IN_RESEARCH"
        v-model="model.phdInResearch"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.phdInResearch')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.transferYear')" width="280">
      <EditInput
        v-model="model.transferYear"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoUniversity.fields.transferYear')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item
      :label="t('ustcStudentInfoUniversity.fields.destinationType')"
      width="280"
    >
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_DESTINATION_TYPE"
        v-model="model.destinationType"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.destinationType')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item
      :label="t('ustcStudentInfoUniversity.fields.destinationUnit')"
      width="280"
    >
      <EditInput
        v-model="model.destinationUnit"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoUniversity.fields.destinationUnit')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.archiveAddress')" width="280">
      <EditInput
        v-model="model.archiveAddress"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoUniversity.fields.archiveAddress')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.archiveContact')" width="280">
      <EditInput
        v-model="model.archiveContact"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoUniversity.fields.archiveContact')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item
      :label="t('ustcStudentInfoUniversity.fields.archiveTelephone')"
      width="280"
    >
      <EditInput
        v-model="model.archiveTelephone"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoUniversity.fields.archiveTelephone')
        "
        disabled
      />
    </el-descriptions-item>
    <!--    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.confirmLeave')" width="280">-->
    <!--      <EditInput-->
    <!--        :dict-type="DICT_TYPE.USTC_INFO_CONFIRM_LEAVE"-->
    <!--        v-model="model.confirmLeave"-->
    <!--        :placeholder="-->
    <!--          t('common.selectTextPlaceholder') + t('ustcStudentInfoUniversity.fields.confirmLeave')-->
    <!--        "-->
    <!--        disabled-->
    <!--      />-->
    <!--    </el-descriptions-item>-->
    <el-descriptions-item :label="t('ustcStudentInfoUniversity.fields.remark')" width="280">
      <EditInput
        v-model="model.remark"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoUniversity.fields.remark')
        "
        disabled
      />
    </el-descriptions-item>
  </el-descriptions>
</template>

<script setup lang="ts">
import EditInput from './input/EditInput.vue'
import EditDict from './input/EditDict.vue'
import EditDate from './input/EditDate.vue'
import { UstcStudentInfoUniversityVO } from '@/api/core/ustcstudentinfouniversity'
import { DICT_TYPE } from '@/utils/dict'

const { t } = useI18n()

const model = defineModel<UstcStudentInfoUniversityVO>({ required: true })
</script>

<style scoped lang="scss"></style>
